﻿using System;
using System.Xml.Linq;
using Facebook.Json;

namespace Facebook.Configuration
{
    public class FeedActionLinkElement
    {
        public FeedActionLinkElement() { }

        public FeedActionLinkElement(XElement element)
        {
            this.Text = element.Element("text").Value;
            this.Href = element.Element("href").Value;
        }

        [JsonProperty("text")]
        public String Text { get; set; }

        [JsonProperty("href")]
        public String Href { get; set; }
    }
}